//
// Created by haoy on 2017/3/10.
//

#ifndef ANALYZER_TLV_HPP
#define ANALYZER_TLV_HPP

static const int TLV_TYPE_CODEC = 2000;
static const int TLV_TYPE_SDP   = 2001;
static const int TLV_TYPE_RTP   = 2002;
static const int TLV_TYPE_RTCP  = 2003;
static const int TLV_TYPE_END   = 11;
static const int TLV_TYPE_FILE_START = 10;

static const int TLV_TYPE_LOCAL_SDP         = 2020;
static const int TLV_TYPE_REMOTE_SDP        = 2021;
static const int TLV_TYPE_RECV_UDP          = 2022;
static const int TLV_TYPE_SEND_UDP          = 2023;
static const int TLV_TYPE_SRTP_LOCAL_KEY    = 2024;
static const int TLV_TYPE_SRTP_REMOTE_KEY   = 2025;

int read_tlv(FILE * fp, unsigned char * buf, int bufsize, int * plength, int * ptype);

#endif //ANALYZER_TLV_HPP
